import { post } from '@/request/http'
import store from '@/store'



//查询箱型列表
export const GetCommonTypesCodeVa=({ctpCommcode,ctpName,PageIndexs,PageSizes})=>{
  return post('/FTKJWLHYPT/base/GetCommonTypesCodeVa',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          ctpCommcode,
          ctpName
        }
      },
      PageIndexs: {
        FTKJWLHYPT: PageIndexs
      },
      PageSizes: {
        FTKJWLHYPT: PageSizes
      }
    }
  })
}

//新增
export const AddContatinerCommonTypesModel=({
  ctpCommcode,
  ctpName,
  ctpIsvalid,
  ctpRemark
})=>{
  return post('/FTKJWLHYPT/base/AddContatinerCommonTypesModel',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          ctpCommcode,
          ctpName,
          ctpIsvalid,
          ctpRemark,
          ctpInsertuser:store.state.user.USR_CODE_DX_H
        }
      }
    }
  })
}

//编辑
export const EditContatinerCommonTypesModel=({
  ctpCommcode,
  ctpName,
  ctpIsvalid,
  ctpRemark
})=>{
  return post('/FTKJWLHYPT/base/EditContatinerCommonTypesModel',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          ctpCommcode,
          ctpName,
          ctpIsvalid,
          ctpRemark,
          ctpLstupduser:store.state.user.USR_CODE_DX_H
        }
      }
    }
  })
}

//删除
export const DeleteContatinerCommonTypes=(ctpCommcode)=>{
  return post('/FTKJWLHYPT/base/DeleteContatinerCommonTypes',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          ctpCommcode
        }
      }
    }
  })
}
